package priv.lhy.feign.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import priv.lhy.feign.service.IHelloService;

/**
 * @author: lihy
 * date: 2019/10/31 16:39
 * description:
 */
@RestController
public class FeignController {

    @Autowired
    private IHelloService service;

    @RequestMapping("/feign-consumer")
    public String helloConsumer() {
        return service.helloService();
    }
}
